//
//  BIDViewController.m
//  BestKitchener
//
//  Created by yang on 14-2-28.
//  Copyright (c) 2014年 Administrator. All rights reserved.
//

#import "BIDViewController.h"
#import "BIDConstants.h"
#import "KitchenerInfoViewController.h"

@interface BIDViewController ()

@end

@implementation BIDViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	
    KitchenerInfoViewController *kitVic = [[KitchenerInfoViewController alloc] initWithNibName:@"KitchenerInfoViewController" bundle:nil];
    [self.navigationController pushViewController:kitVic animated:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)loginSina:(id)sender
{
    WBAuthorizeRequest *request = [WBAuthorizeRequest request];
    request.redirectURI = kRedirectURL;
    request.scope = @"all";
    request.userInfo = @{@"SSO_From": @"SendMessageToWeiboViewController",
                         @"Other_Info_1": [NSNumber numberWithInt:123],
                         @"Other_Info_2": @[@"obj1", @"obj2"],
                         @"Other_Info_3": @{@"key1": @"obj1", @"key2": @"obj2"}};
    [WeiboSDK sendRequest:request];
}
@end
